Skip to content

fix the invalid stack exception during evaluation#163

Merged
andxu merged 1 commit intomasterfrom
andy_dev4
Mar 26, 2018
Merged

fix the invalid stack exception during evaluation#163
andxu merged 1 commit intomasterfrom
andy_dev4

Conversation

@andxu
Copy link
Copy Markdown
Contributor

@andxu andxu commented Mar 26, 2018

No description provided.

ensureDebugTarget(thread.virtualMachine(), thread, 0);
JDIThread jdiThread = getMockJDIThread(thread);
JDIStackFrame stackframe = (JDIStackFrame) jdiThread.getTopStackFrame();
JDIStackFrame stackframe = new JDIStackFrame(jdiThread, thread.frame(0), 0);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why update it? Is JDIStackFrame changed by jdt library?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getTopStackFrame uses the inner cache in Jdithread, it will have the possibility to become invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants